package com.yzw.phonecommen.common;

/**
 * @BelongsProject: springbootdome
 * @BelongsPackage: com.yu.sbmpsum1.common
 * @Author: yanhongwei
 * @CreateTime: 2022-10-30  17:25
 * @Description: TODO
 * @Version: 1.0
 */
public enum BusinessMsgEnum {
    /** 参数异常 */
    PARMETER_EXCEPTION(102, "参数异常!"),
    /** 等待超时 */
    SERVICE_TIME_OUT(103, "服务调用超时！"),
    /** 参数过大 */
    PARMETER_BIG_EXCEPTION(102, "输入的图片数量不能超过50张!"),
    /** 500 : 发生异常 */
    UNEXPECTED_EXCEPTION(500, "系统发生异常，请联系管理员！");

    /**
     * 消息码
     */
    private Integer code;
    /**
     * 消息内容
     */
    private String msg;

    private BusinessMsgEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return msg;
    }

}